/**
 * 
 */
package com.dp.behav.template;

/**
 * This is an example of template design pattern.It formalizes the idea of
 * defining an algorithm in a class, but leaving some of the details to be
 * implemented in subclasses.A template method defines an algorithm in a base
 * class using abstract operations that subclasses override to provide concrete
 * behaviour.
 * 
 * @author Sunaina.Sharma
 * 
 */
public class TemplateEx {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Trip tripA = new PackageA();
		tripA.performTrip();
		Trip tripB = new PackageB();
		tripB.performTrip();
	}
}
